#include "waitfortheloading.h"
#include "ui_waitfortheloading.h"

WaitForTheLoading::WaitForTheLoading(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::WaitForTheLoading)
{
    ui->setupUi(this);

    //设置窗口为模态但是不阻塞主界面
    setWindowModality(Qt::ApplicationModal);
    //设置窗口无边框与不显示任务栏图标
    setWindowFlags(windowFlags() | Qt::FramelessWindowHint | Qt::SubWindow);
    //设置窗口背景透明
    setAttribute(Qt::WA_TranslucentBackground);
    //设置窗口关闭时自动释放
    setAttribute(Qt::WA_DeleteOnClose);
}

WaitForTheLoading::~WaitForTheLoading()
{
    delete ui;
}
